package com.cainaer.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cainaer.product.domain.ProductAttributeBindOption;

import java.util.List;

/**
 * <p>
 * 规格属性绑定表 服务类
 * </p>
 *
 * @author Tina
 * @since 2020-09-11
 */
public interface IProductAttributeBindOptionService extends IService<ProductAttributeBindOption> {

    /**
     * 新增商品规格属性绑定数据
     *
     * @param productAttributeBindOption
     * @return
     */
    public Integer insertProductAttributeBindOption(ProductAttributeBindOption productAttributeBindOption);

    /**
     * 编辑商品规格属性绑定数据
     *
     * @param productAttributeBindOption
     * @return
     */
    public Integer editProductAttributeBindOption(ProductAttributeBindOption productAttributeBindOption);


    /**
     * 通过规格ID 查询商品规格属性绑定数据
     *
     * @param attributeId
     * @return
     */
    public List<ProductAttributeBindOption> selectProductAttributeBindOptionByAttributeId(Long attributeId);


}
